<html>
<head>
<script> 
function SelectAll() { 
  for (var i=0;i<document.form.elements.length;i++) 
    { 
    var flds = document.form.elements[i]; 
    if ((flds.name != 'loop') && (flds.name !='random') && (flds.name !='append')) 
      flds.checked = 1;//document.forms[0].checkAll.checked; 
    } 
  } 
  function cList() { 
  for (var i=0;i<document.form.elements.length;i++) 
    { 
    var flds = document.form.elements[i]; 
    if ((flds.name != 'loop') && (flds.name !='random') && (flds.name !='append')) 
      flds.checked = 0;//document.forms[0].checkAll.checked; 
    } 
  } 
 
 function InvertSelect() { 
  for (var i=0;i<document.form.elements.length;i++) 
    { 
    var flds = document.form.elements[i]; 
    if ((flds.name != 'loop') && (flds.name !='random') && (flds.name !='append')) {
	
      if (flds.checked == 1){
      	flds.checked = 0
      } else {
      	flds.checked = 1
      }
    }
 
 
    } 
  } 
  
c = 0;
var flag;
songlist = new Array;
function getList(m) {
 
	theForm = this.document.form
        for (var i=0;i<document.form.elements.length;i++) {
                if (document.form.elements[i].name == 'sid') {
                        if (document.form.elements[i].checked) {
                         songlist[c] = document.form.elements[i].value;
                         c++;
                        }
                }
        }
 
	if (c <1)
		checkList(m);
	else
		setList(m);
 
}
 
function checkList(n){
	SelectAll(n);
	getList(n);
}
 
 
 
function setList(o){
//alert('hello');
 //winW = 468;
 //winH = 280;
	// mode = this.document.form.mode.value;
	//alert('hello');
        sel = songlist[0];
        for (var j=1;j<c;j++) {
		sel += ","+songlist[j];
        }
		   liststr = "pop_new.php?sid="+sel+"&wid="+o;
		   sel="";
	       c=0;
	       flag=1;
	       rjb = doWin1(liststr,'rjb');	
		
        
		//alert('hi');
		//liststr = "pop.php?sid="+sel+"&wid="+o;
		
		
	 
}
 
 
function setList1(x,y){
winW = 821;
winH = 390;
	mode = 0;
	if (this.document.form.mode)
		mode = this.document.form.mode.value;
	
    liststr = "pop_new.php?sid="+x+"&wid="+y+"&mode="+mode+"&rand="+Math.random();
	sel="";
	c=0;
	flag=0;
	rjb = doWin(liststr,'rjb');
}
 
function doWin(z,winName,scrollable){
//alert(z);
if(flag==1)
{
 
 
  winW = 821;
  winH = 390;
}
	isScroll=0;
	
	if(winH < 1)
		winH=1;
	if(winW < 1)
		winW=1;
	if (screen.availWidth && screen.availHeight)
		    var xMax = screen.availWidth, yMax = screen.availHeight;
		else
		if (document.layers)
		    var xMax = window.outerWidth, yMax = window.outerHeight;
		else
		    var xMax = 640, yMax=480;
 
	if (winW > xMax-20){
		isScroll = 1;
		winW = xMax-20;
	}
	if (winH > yMax-20){
		isScroll = 1;
		winH = yMax-30;
	}
		    
		var xOffset = (xMax/2)-(winW/2), yOffset = (yMax/2)-(winH/2);
		
		if ( scrollable )
			isScroll = 1;
		
		
		thisWin = window.open (z,winName,'width='+winW+',height='+winH+',directories=no,toolbar=no,menubar=no,location=no,scrollbars='+isScroll+',minimize=yes,resizable=no,copyhistory=no,status=no,titlebar=no,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
       return thisWin;
	  // alert('end of the song');
}
 
function doWin1(z,winName,scrollable){
//alert(z);
if(flag==1)
{
  winW = 821;
  winH = 390;
}
	isScroll=0;
	
	if(winH < 1)
		winH=1;
	if(winW < 1)
		winW=1;
	if (screen.availWidth && screen.availHeight)
		    var xMax = screen.availWidth, yMax = screen.availHeight;
		else
		if (document.layers)
		    var xMax = window.outerWidth, yMax = window.outerHeight;
		else
		    var xMax = 640, yMax=480;
 
	if (winW > xMax-20){
		isScroll = 1;
		winW = xMax-20;
	}
	if (winH > yMax-20){
		isScroll = 1;
		winH = yMax-30;
	}
		    
		var xOffset = (xMax/2)-(winW/2), yOffset = (yMax/2)-(winH/2);
		
		if ( scrollable )
			isScroll = 1;
		
		
		thisWin = window.open (z,winName,'width='+winW+',height='+winH+',directories=no,toolbar=no,menubar=no,location=no,scrollbars='+isScroll+',minimize=yes,resizable=no,copyhistory=no,status=no,titlebar=no,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
      // window.close();
	   return thisWin;
	   //alert('end of the song');
}
 
 
  
</script> 
 
 
 
 
<link rel="https://ads-posting.googlecode.com/svn/trunk/play.html" /> 
 
</head> 
<body>
<center><input style="font-family:Arial, Helvetica, sans-serif; background-color: #8C1313; border: 0 none; border-radius: 5px 5px 5px 5px; color: #FFFFFF; font-size: 12px !important; font-weight: bold !important; margin-right: 10px;    padding: 3px 8px;"  type=button value='Play Selected' onClick='getList(2237)' class='button_ctl'>&nbsp;<input style="font-family:Arial, Helvetica, sans-serif; background-color: #004592; border: 0 none; border-radius: 5px 5px 5px 5px; color: #FFFFFF; font-size: 12px !important; font-weight: bold !important; margin-right: 10px; padding: 3px 8px;" type=button value='Select All' onClick='SelectAll()' name='button' class='button_ctl'>&nbsp;<input style="font-family:Arial, Helvetica, sans-serif;  background-color: #8C1313; border: 0 none; border-radius: 5px 5px 5px 5px; color: #FFFFFF; font-size: 12px !important; font-weight: bold !important; margin-right: 10px;    padding: 3px 8px;" type=button value='Invert Selection' onClick='InvertSelect()' name='button' class='button_ctl'>&nbsp;<input style="font-family:Arial, Helvetica, sans-serif;  background-color: #444444;  border: 0 none; border-radius: 5px 5px 5px 5px; color: #FFFFFF; font-size: 12px !important; font-weight: bold !important; margin-right: 10px;    padding: 3px 8px;" type=button name='clear' value='Clear All' onClick='cList()' class='button_ctl'></center> 
<table> 
				<form name="form"> 
								     <tr><td><input type="checkbox" value="15070" name="sid"  ></td><td>&nbsp;&nbsp;&nbsp;</td><td align="left"><a onClick="setList1(15070,2237);return false;" href="" class="headline_content" title="Click to play">A Life Full Of Love</a></td> 
				     </tr> 
								     <tr><td><input type="checkbox" value="15071" name="sid"  ></td><td>&nbsp;&nbsp;&nbsp;</td><td align="left"><a onClick="setList1(15071,2237);return false;" href="" class="headline_content" title="Click to play">Come On Girls</a></td> 
				     </tr> 
								     <tr><td><input type="checkbox" value="15072" name="sid"  ></td><td>&nbsp;&nbsp;&nbsp;</td><td align="left"><a onClick="setList1(15072,2237);return false;" href="" class="headline_content" title="Click to play">Kannuladha</a></td> 
				     </tr> 
								     <tr><td><input type="checkbox" value="15073" name="sid"  ></td><td>&nbsp;&nbsp;&nbsp;</td><td align="left"><a onClick="setList1(15073,2237);return false;" href="" class="headline_content" title="Click to play">Nee Paata Madhuram</a></td> 
				     </tr> 
								     <tr><td><input type="checkbox" value="15074" name="sid"  ></td><td>&nbsp;&nbsp;&nbsp;</td><td align="left"><a onClick="setList1(15074,2237);return false;" href="" class="headline_content" title="Click to play">Po Ve Po</a></td> 
				     </tr> 
								     <tr><td><input type="checkbox" value="15075" name="sid"  ></td><td>&nbsp;&nbsp;&nbsp;</td><td align="left"><a onClick="setList1(15075,2237);return false;" href="" class="headline_content" title="Click to play">Po Ve Po Remix</a></td> 
				     </tr> 
								     <tr><td><input type="checkbox" value="15076" name="sid"  ></td><td>&nbsp;&nbsp;&nbsp;</td><td align="left"><a onClick="setList1(15076,2237);return false;" href="" class="headline_content" title="Click to play">The Rhythm Of Love</a></td> 
				     </tr> 
								     <tr><td><input type="checkbox" value="15077" name="sid"  ></td><td>&nbsp;&nbsp;&nbsp;</td><td align="left"><a onClick="setList1(15077,2237);return false;" href="" class="headline_content" title="Click to play">Theme Of 3</a></td> 
				     </tr> 
								     <tr><td><input type="checkbox" value="15078" name="sid"  ></td><td>&nbsp;&nbsp;&nbsp;</td><td align="left"><a onClick="setList1(15078,2237);return false;" href="" class="headline_content" title="Click to play">Why This Kolaveri Di</a></td> 
				     </tr> 
								     <tr><td><input type="checkbox" value="15079" name="sid"  ></td><td>&nbsp;&nbsp;&nbsp;</td><td align="left"><a onClick="setList1(15079,2237);return false;" href="" class="headline_content" title="Click to play">Yedhalo Oka Mounam</a></td> 
				     </tr> 
				                </form> 
				</table> 
				
				</div> 
				
				<center><input style="font-family:Arial, Helvetica, sans-serif; background-color: #8C1313; border: 0 none; border-radius: 5px 5px 5px 5px; color: #FFFFFF; font-size: 12px !important; font-weight: bold !important; margin-right: 10px;    padding: 3px 8px;" type=button value='Play Selected' onClick='getList(2237)' class='button_ctl'>&nbsp;<input style="font-family:Arial, Helvetica, sans-serif; background-color: #004592; border: 0 none; border-radius: 5px 5px 5px 5px; color: #FFFFFF; font-size: 12px !important; font-weight: bold !important; margin-right: 10px; padding: 3px 8px;" type=button value='Select All' onClick='SelectAll()' name='button' class='button_ctl'>&nbsp;<input style="font-family:Arial, Helvetica, sans-serif;  background-color: #8C1313; border: 0 none; border-radius: 5px 5px 5px 5px; color: #FFFFFF; font-size: 12px !important; font-weight: bold !important; margin-right: 10px;    padding: 3px 8px;" type=button value='Invert Selection' onClick='InvertSelect()' name='button' class='button_ctl'>&nbsp;<input style="font-family:Arial, Helvetica, sans-serif;  background-color: #444444;  border: 0 none; border-radius: 5px 5px 5px 5px; color: #FFFFFF; font-size: 12px !important; font-weight: bold !important; margin-right: 10px;    padding: 3px 8px;" type=button name='clear' value='Clear All' onClick='cList()' class='button_ctl'></center>
